<h2 id="titleResort">관광지</h2>
<%
@Resort.each do |ele|
	if ele['item'].nil?
%>
		검색 결과가 없습니다.
<%
	else
		i = 0
%>
<ul>
<%
		ele['item'].each do |item|
		i = i + 1
		if i > 3 then break end
%>
	<li>
		<h3>
<%=item['title']%>
			<%
				if item['link'][0].length > 0
			%>
				<a target="_blank" href="<%=item['link']%>">
					<%=image_tag("../images/home_icon.jpg", :size=>"14x14", :alt=>"홈페이지로..", :title=>"홈페이지로..") %>
				</a>
			<%				
				end
				mapx = item['mapx'][0]
				mapy = item['mapy'][0]
				title = item['title'][0]
				telephone = item['telephone'][0]
				address = item['address'][0]
				description = item['description'][0]
				if mapx.to_i > 0 and mapy.to_i > 0
			%>
			<a href="javascript:showNaverMapAndMark(<%=mapx + ', ' + mapy %>, 3, new Array('<%=title%>', '<%=telephone%>', '<%=address%>'));">
			<%=image_tag("../images/map_icon.jpg", :size=>"14x14", :alt=>"지도보기", :title=>"지도보기") %>
			</a>
				<%
				else
				end
				%>
		</h3>
		<p><%=description%></p>
	</li>

<%
		end
%>
</ul>
<%
	end
end
%> 